package cn.itcast.hotel.pojo;

import lombok.Data;
import lombok.experimental.Accessors;

/**
 * 自定义返回结果
 *
 * @author xzx
 * @since 2022/7/8
 */
@Data
@Accessors(chain = true)
public class R {
    private Integer code;
    private String msg;
    private Object data;

    public  R OK(Object data) {
        return new R().setCode(200).setMsg("成功!").setData(data);
    }
}

